package org.bbl.web.panel;


import org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow;
import org.apache.wicket.markup.html.panel.Panel;
import org.bbl.db.domain.Bbl;
import org.bbl.db.domain.Book;

/**
 * @author biniam.gebremichael
 * @since 4/15/13
 */

public class EntityEditor extends ModalWindow {

    public EntityEditor(String id, int height, int width, Book book, Bbl bbl) {
        super(id);

        Panel component = new ReportTypo(getContentId(), bbl, book, this);

        intSize(height, width, component);
    }

    private void intSize(int height, int width, Panel component) {
        setContent(component);
        setTitle("");
        setInitialHeight(height);
        setInitialWidth(width);
        setResizable(true);
    }
}
